﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageRestaurant.aspx.cs" Inherits="Restaurant_ManageRestaurant" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>餐厅管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;
        <asp:Button ID="BtnAdd" runat="server" OnClick="ButAdd_Click" Style="z-index: 100;
            left: 55px; position: absolute; top: 80px" Text="添加" Width="109px" />
        &nbsp; &nbsp;
        <asp:TextBox ID="TextBox1" runat="server" Style="z-index: 101; left: 146px; position: absolute;
            top: 35px" Visible="False"></asp:TextBox>
        &nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Style="z-index: 102; left: 61px; position: absolute;
            top: 35px" Text="餐厅名:" Width="77px" Visible="False"></asp:Label>
        <asp:Button ID="BtnSearch" runat="server" Style="z-index: 103; left: 321px; position: absolute;
            top: 35px" Text="查询" Visible="False" OnClick="BtnSearch_Click" />
    
    </div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="None" Height="193px" Style="z-index: 104; left: 60px;
            position: absolute; top: 117px" Width="593px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowCommand="GridView1_RowCommand">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:BoundField DataField="R_sName" HeaderText="餐馆名" />
                <asp:BoundField HeaderText="地址" DataField="R_sAddress" />
                <asp:BoundField DataField="R_sTel" HeaderText="电话" />
                <asp:BoundField HeaderText="餐位数" DataField="R_nTableNum" />
                <asp:BoundField DataField="R_fMinCost" HeaderText="最小花费" />
                <asp:BoundField DataField="R_fMaxCost" HeaderText="最大花费" />
                <asp:BoundField DataField="R_sCity" HeaderText="城市" />
                <asp:BoundField DataField="R_sDesc" HeaderText="描述" />
                <asp:BoundField DataField="R_nID" HeaderText="ID" />
                <asp:CommandField ShowSelectButton="True" />
            </Columns>
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        &nbsp;
        <asp:Button ID="BtnDel" runat="server" Style="z-index: 105; left: 335px; position: absolute;
            top: 80px" Text="删除 " Width="109px" Enabled="False" OnClick="BtnDel_Click" />
        <asp:Button ID="BtnUpdate" runat="server" OnClick="ButUpdate_Click" Style="z-index: 106;
            left: 201px; position: absolute; top: 80px" Text="修改" Width="109px" Enabled="False" />
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="z-index: 107;
            left: 496px; position: absolute; top: 80px" Text="餐位管理" Width="59px" />
        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Style="z-index: 108;
            left: 619px; position: absolute; top: 79px" Text="订单情况" Width="60px" />
        <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Style="z-index: 110;
            left: 581px; position: absolute; top: 29px" Text="返回" Width="34px" />
    </form>
</body>
</html>
